﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Menu" Object="Template.Menu" Operation="Get(Request.QueryString['TemplatePath'], Request.QueryString['Namespace'], Convert.ToInt32(Request.QueryString['ID']))" Validate="True" />
<section data-page="template_menu_edit" data-title="编辑模块菜单" data-lang="<%=ContentLang%>" data-template-path="<%=Request.QueryString["TemplatePath"]%>" data-namespace="<%=Request.QueryString["Namespace"]%>" data-id="<%=Request.QueryString["ID"]%>" data-parent-id="<%=Menu[ParentID]%>" data-path-in-template="<%=Convert.ToString(Menu[PathInTemplate]).Replace('\\', '/')%>" data-object-id="<%=Menu[ObjectID]%>" data-operation-id="<%=Menu[OperationID]%>">
	<dl class="path1">
		<dt><span>您的位置：</span>编辑模块菜单</dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="../edit.aspx?Path=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">编辑</a></li>
							<li><a href="../dictionary.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">词典</a></li>
							<li><a href="../module.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">模块邦定</a></li>
							<li><a href="../pages/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">页面列表</a></li>
							<li><a href="../pages/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加页面</a></li>
							<li><a href="../script/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">脚本列表</a></li>
							<li><a href="../script/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加脚本</a></li>
							<li><a href="list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">模块菜单列表</a></li>
							<li><a href="add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加模块菜单</a></li>
							<li class="ali-active"><a>编辑模块菜单</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>父菜单：</th>
								<td>
									<select name="ParentID" data-class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root=""><option value="" data-item="" data-parent="">--未指定--</option></select>
								</td>
							</tr>
							<tr>
								<th>名称：</th>
								<td><input type="text" name="Name" value="<%=Menu[Name]%>" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
							</tr>
							<tr>
								<th>权限：</th>
								<td>
									对象：<select name="ObjectID" data-class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root=""><option value="" data-item="" data-parent="">--未指定--</option></select>
									操作：<select name="OperationID" data-class="<%=ContentLang%>Font" data-ali-widget="combo"><option value="">--未指定--</option></select>
								</td>
							</tr>
							<tr>
								<th>页面：</th>
								<td>
									<select name="PathInTemplate" data-class="<%=ContentLang%>Font" data-ali-widget="combo"><option value="">--未指定--</option></select>
									该值未指定，则使用URL
								</td>
							</tr>
							<tr>
								<th>URL：</th>
								<td><input type="text" name="URL" value="<%=Menu[URL]%>" size="50" maxlength="255" class="ali-input" ></td>
							</tr>
							<tr>
								<th>目标窗口：</th>
								<td>
									<input type="text" name="Target" value="<%=Menu[Target]%>" maxlength="50" >
									备选项：
									<select data-name="TargetCandidate" data-class="<%=ContentLang%>Font" data-ali-widget="combo">
										<option value="">-- 未指定 --</option>
										<option value="_self">在原窗口打开(_self)</option>
										<option value="_top">在顶层窗口打开(_top)</option>
										<option value="_parent">在父窗口打开(_parent)</option>
										<option value="_blank">在新窗口打开(_blank)</option>
									</select>
								</td>
							</tr>
							<tr>
								<th>是否显示：</th>
								<td>
									<%If Convert.ToBoolean(Menu[IsDisplay])%>
										<label><input type="radio" name="IsDisplay" value="true" checked>是</label>
										<label><input type="radio" name="IsDisplay" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="IsDisplay" value="true">是</label>
										<label><input type="radio" name="IsDisplay" value="false" checked>否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>默认菜单：</th>
								<td>
									<%If Convert.ToBoolean(Menu[IsDefault])%>
										<label><input type="radio" name="IsDefault" value="true" checked>是</label>
										<label><input type="radio" name="IsDefault" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="IsDefault" value="true">是</label>
										<label><input type="radio" name="IsDefault" value="false" checked>否</label>
									<%EndIf%>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>